import { configureStore, ThunkAction, Action } from '@reduxjs/toolkit';
import home from './modules/home';
import user from './modules/user';
export type AppDispatch = typeof store.dispatch;
export type RootState = ReturnType<typeof store.getState>;
export type AppThunk<ReturnType = void> = ThunkAction<
  ReturnType,
  RootState,
  unknown,
  Action<string>
>;

const store = configureStore({
    reducer: {
        home,
        user
    },
  });
export default store;